/**
 * Project: portal
 * Created: 2016年7月20日
 * Copyright ©2011 - 2016 gopay Information Technology Co., LTD All Rights Reserved
**/
package com.gopay.common.domain.cbrmb.draw;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/** 
 * <P>ClassName: CbrmbDrawInitDTO 
 * <P>Description:
 * @author junjie.ge 
 * @date 2016年7月20日 下午4:07:02  
 */

public class CbrmbDrawInitDTO implements Serializable {
	private static final long serialVersionUID = -5979544083243005562L;
	private CustDTO cust;
	private Integer accountCount = 0;
	private Integer bankCardCount = 0;
	private List<AccountDTO> accounts;
	private List<BoundBankCardDTO> boundBankCards;
	private BigDecimal drawAmount;
	private Boolean hasOutBoradersTranPri;
	private Boolean hasInBoradersTranPri;
	/**
	 * @return the cust
	 */
	public CustDTO getCust() {
		return cust;
	}
	/**
	 * @param cust the cust to set
	 */
	public void setCust(CustDTO cust) {
		this.cust = cust;
	}
	/**
	 * @return the boundBankCards
	 */
	public List<BoundBankCardDTO> getBoundBankCards() {
		if (boundBankCards == null) {
			boundBankCards = new ArrayList<>(0);
		}
		return boundBankCards;
	}
	/**
	 * @param boundBankCards the boundBankCards to set
	 */
	public void setBoundBankCards(List<BoundBankCardDTO> boundBankCards) {
		this.boundBankCards = boundBankCards;
	}
	/**
	 * @return the accounts
	 */
	public List<AccountDTO> getAccounts() {
		if (accounts == null) {
			accounts = new ArrayList<>(0);
		}
		return accounts;
	}
	/**
	 * @param accounts the accounts to set
	 */
	public void setAccounts(List<AccountDTO> accounts) {
		this.accounts = accounts;
	}
	/**
	 * @return the drawAmount
	 */
	public BigDecimal getDrawAmount() {
		return drawAmount;
	}
	/**
	 * @param drawAmount the drawAmount to set
	 */
	public void setDrawAmount(BigDecimal drawAmount) {
		this.drawAmount = drawAmount;
	}
    /**
     * @return the accountCount
     */
    public Integer getAccountCount() {
        if (accountCount == null && accounts != null) {
            return accounts.size();
        }
        return accountCount;
    }
    /**
     * @param accountCount the accountCount to set
     */
    public void setAccountCount(Integer accountCount) {
        this.accountCount = accountCount;
    }
    /**
     * @return the bankCardCount
     */
    public Integer getBankCardCount() {
        if (bankCardCount == null && boundBankCards != null) {
            return boundBankCards.size();
        }
        return bankCardCount;
    }
    /**
     * @param bankCardCount the bankCardCount to set
     */
    public void setBankCardCount(Integer bankCardCount) {
        this.bankCardCount = bankCardCount;
    }
    /**
     * @return the hasOutBoradersTranPri
     */
    public Boolean getHasOutBoradersTranPri() {
        return hasOutBoradersTranPri;
    }
    /**
     * @param hasOutBoradersTranPri the hasOutBoradersTranPri to set
     */
    public void setHasOutBoradersTranPri(Boolean hasOutBoradersTranPri) {
        this.hasOutBoradersTranPri = hasOutBoradersTranPri;
    }
    /**
     * @return the hasInBoradersTranPri
     */
    public Boolean getHasInBoradersTranPri() {
        return hasInBoradersTranPri;
    }
    /**
     * @param hasInBoradersTranPri the hasInBoradersTranPri to set
     */
    public void setHasInBoradersTranPri(Boolean hasInBoradersTranPri) {
        this.hasInBoradersTranPri = hasInBoradersTranPri;
    }
	
}
